Draws thing number n, frame f, standing at (x, y) in the room and lift source pixels above the floor. The way to draw a thing that is not an instance, or one that flies (a bolt).
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_draw_thing(thing, frame, x, y, lift)| Name | Type |
|---|---|
thing | int |
frame | int |
x | real |
y | real |
lift | real |
Nothing.
Draws thing number thing, frame frame, standing at (x, y) in the room (room pixels counted from the room's top-left corner) and lift source pixels above the floor. It is the way to draw a thing that is not an instance, or one that flies (a bolt, a bat).
lift is counted in the picture's own pixels, 64 of them being one wall's height, so a lift of 32 floats half a wall up. See view3d_draw_self for what is drawn and what is hidden.
// a bolt flying at half the height of a wall, at room place (120, 80)
view3d_draw_thing(2, 0, 120, 80, 32);The bolt hangs half a wall above the floor at that place.
lift is counted in the picture’s own pixels, 64 of them being one wall’s height: a thing drawn with lift 32 floats half a wall up. See view3d_draw_self for what is drawn and hidden.